<%@ page contentType="text/html;charset=UTF-8" errorPage="errorhandle.jsp" %>
<%
  // 获取姓名参数
  String name = request.getParameter("name");
  if (name == null || name.trim().isEmpty()) {
    name = "用户";
  } else {
    // URL解码
    name = java.net.URLDecoder.decode(name, "UTF-8");
  }
%>
<html>
<head>
  <title>禁止访问</title>
</head>
<body>
<p>对不起，<%= name %>，您未满18岁，禁止访问此页面。</p>
<a href="login.jsp">返回登录页面</a>

<hr>
<%@ include file="link.jsp" %>
</body>
</html>